import QtQuick 2.0
import QtQuick.Controls 2.0

import "menus"
import "forms"
import "map"

//ApplicationWindow
//{
//    width: 500
//    height: 500
//    visible: true
//    StackView {
//        id: pageStack
//        anchors.fill: parent
//        focus: true
//        function initializeProviders(pluginParameters)
//        {
//            firstPage.initializeProviders(pluginParameters)
//        }

//        initialItem:DragPage
//        {
//            id: firstPage
//            anchors.fill: parent
//        }

//        function showMessage(title,message)
//        {
//            pageStack.push("qrc:/qml/forms/Message.qml", {title: title, message: message})
//        }

//        function showRouteListPage()
//        {
//            pageStack.push("qrc:/qml/forms/RouteList.qml", {routeModel:map.routeModel})
//        }

//    }
//}

StackView {
    id: pageStack
    width: 500
    height: 500
    visible: true
   // anchors.fill: parent
    focus: true
    function initializeProviders(pluginParameters)
    {
        firstPage.initializeProviders(pluginParameters)
    }

    initialItem:DragPage
    {
        id: firstPage
        anchors.fill: parent
    }

    function showMessage(title,message)
    {
        pageStack.push("qrc:/qml/forms/Message.qml", {title: title, message: message})
    }

    function showRouteListPage()
    {
        pageStack.push("qrc:/qml/forms/RouteList.qml", {routeModel:map.routeModel})
    }

}


